<%@page import="com.zretc.news.entity.NewsType"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="../../favicon.ico">

<title>Dashboard Template for Bootstrap</title>

<!--1. Bootstrap core CSS -->
<link href="dist/css/bootstrap.min.css" rel="stylesheet">



<!--2. Custom styles for this template -->
<link href="css/dashboard.css" rel="stylesheet">

</head>

<body>

   <jsp:include page="nav.html"></jsp:include>

	<div class="container-fluid">
		<div class="row">
			<div class="col-sm-3 col-md-2 sidebar">
				<ul class="nav nav-sidebar">
					<li><a href="NewsTypeServlet">新闻类型</a></li>
					<li ><a href="addtype.jsp">新增类型<span class="sr-only">(current)</span></a></a></li>
					<li class="active"><a href="addusers.jsp">新增用户</a></li>
					<li ><a href="NewsTypeServlet?op=queryByPage">新闻类型表(分页) </a></li>
					<li ><a href="addnews.jsp">新增新闻</a></li>
					
				</ul>

			</div>
			<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">


				<h2 class="sub-header">新增用户</h2>

				<div class="row clearfix">
					<div class="col-md-8 column">

						<!-- 前端的校验，大家记得要校验用户输入的确认密码和密码是否一致，保证一致后，表单再提交,大家要记得完成一下  onsubmit="return fun()"-->
						<form class="form-horizontal" role="form" action="UsersServlet"
							method="post">
							<div class="form-group">
								<label for="inputEmail3" class="col-sm-2 control-label">用户名称</label>
								<div class="col-sm-10">
									<input type="text" class="form-control" id="username"
										name="username" required="required" />
								</div>
							</div>
							<div class="form-group">
								<label for="inputPassword3" class="col-sm-2 control-label">用户密码</label>
								<div class="col-sm-10">
									<input type="password" class="form-control" id="userpwd"
										name="userpwd" required="required" />
								</div>
							</div>
							<div class="form-group">
								<label for="inputPassword3" class="col-sm-2 control-label">确认密码</label>
								<div class="col-sm-10">
									<input type="password" class="form-control" id="cuserpwd"
										name="cuserpwd" required="required" />
								</div>
							</div>
							<input type="hidden" name="op" value="adduser">

							<div class="form-group">
								<div class="col-sm-offset-2 col-sm-10">
									<button type="submit" class="btn btn-default">增加</button>
								</div>
							</div>
						</form>
					</div>
					<div class="col-md-4 column"></div>
				</div>



			</div>
		</div>
	</div>

	<!-- Bootstrap core JavaScript
    ================================================== -->
	<!--3 - js/jquery-2.0.3.js -->
	<script src="js/jquery-2.0.3.js"></script>
	<!--4 - ootstrap.min.js -->
	<script src="dist/js/bootstrap.min.js"></script>

</body>
</html>
